package com.abc.cloud.service;

import com.abc.cloud.dto.im.ContactsSearch;
import com.abc.cloud.dto.im.ContactsUserDto;
import com.abc.cloud.dto.user.UserDto;
import com.abc.cloud.vo.im.AdminUpdateContactsReq;
import com.baomidou.mybatisplus.extension.service.IService;
import com.abc.cloud.common.utils.PageUtil;
import com.abc.cloud.entity.ContactsEntity;

import java.util.List;
import java.util.Map;

/**
 * 联系人表
 *
 * @author LiJunXi
 * @email 2770063826@qq.com
 * @date 2023-11-29 13:19:41
 */
public interface ContactsService extends IService<ContactsEntity> {

    PageUtil queryPage(Map<String, Object> params);

    ContactsSearch search(String searchContent);

    List<ContactsUserDto> queryByGroupId(Long id);

    void saveContacts(Long userId, Long userId1, String note, Long groupId);

    ContactsUserDto info(Long id);

    void updateContacts(Long userId, Long id, Long groupId, String note, Integer status);

    PageUtil adminContactsList(Map<String, Object> params);

    void adminUpdateContacts(AdminUpdateContactsReq adminUpdateContactsReq);

    void adminDeleteContacts(List<Long> ids, Integer status);
}

